package com.qaplus.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.qaplus.entity.QaUser;

@Repository
public interface QaUserMapperExt extends QaUserMapper {
	public QaUser userLogin(@Param("username") String username );

	public QaUser queryTeacher(@Param("id")Long id);
	
	//获得用户数组
	List<QaUser> getUserList(@Param("id") Long id);
	
	int countForPage();
	
	List<QaUser> selectAllTeacher();

	QaUser queryIsDeletedUserByUsername(@Param("username")String username);

	int updateIsDeletedUserCanUser(@Param("id")Long id);

	QaUser checkUsername(@Param("username")String username);

	//查询学生做作业情况
	List<QaUser> queryHomeworkUser(@Param("homeworkId")Long homeworkId,@Param("isCommit")String isCommit);
	
}